package com.zhangy.service;
import com.zhangy.mapper.ZhuzhaiMapper;
import com.zhangy.model.Zhuzhai;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ZhuzhaiServiceImpl implements ZhuzhaiService {
    @Autowired
    private ZhuzhaiMapper zhuzhaiMapper ;

    public void addZhuzhai(Zhuzhai zhuzhai) {
        zhuzhaiMapper.addZhuzhai(zhuzhai);
    }


    public void delZhuzhai(List arrList) {
        zhuzhaiMapper.delZhuzhai(arrList);
    }


    public Zhuzhai selZhuzhaiById(int zzid) {
        return zhuzhaiMapper.selZhuzhaiById(zzid);
    }


    public void updateZhuzhai(Zhuzhai zhuzhai) {
        zhuzhaiMapper.updateZhuzhai(zhuzhai);
    }


    public List<Zhuzhai> selectZhuzhaiList() {
        return zhuzhaiMapper.selectZhuzhaiList();
    }
}
